home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / dbus-1 / system.d / ConsoleKit.conf < prev    next >
Text File  |  2008-10-24  |  4KB  |  95 lines

  1. <!DOCTYPE busconfig PUBLIC
  2.  "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  3.  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
  4. <busconfig>
  5.  
  6.   <!-- Only root can own the service -->
  7.   <policy user="root">
  8.     <allow own="org.freedesktop.ConsoleKit"/>
  9.  
  10.     <!-- Allow all methods on interfaces -->
  11.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"/>
  12.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"/>
  13.     <allow send_interface="org.freedesktop.ConsoleKit.Session"/>
  14.   </policy>
  15.  
  16.   <!-- Deny all and then allow some methods on interfaces -->
  17.   <policy context="default">
  18.     <deny send_interface="org.freedesktop.ConsoleKit.Manager"/>
  19.     <deny send_interface="org.freedesktop.ConsoleKit.Seat"/>
  20.     <deny send_interface="org.freedesktop.ConsoleKit.Session"/>
  21.     <deny send_destination="org.freedesktop.ConsoleKit"
  22.           send_interface="org.freedesktop.DBus.Properties" />
  23.  
  24.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  25.            send_member="Restart"/>
  26.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  27.            send_member="Stop"/>
  28.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  29.            send_member="OpenSession"/>
  30.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  31.            send_member="CloseSession"/>
  32.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  33.            send_member="GetSeats"/>
  34.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  35.            send_member="GetSessionForCookie"/>
  36.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  37.            send_member="GetSessionForUnixProcess"/>
  38.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  39.            send_member="GetCurrentSession"/>
  40.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  41.            send_member="GetSessionsForUnixUser"/>
  42.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  43.            send_member="GetSessionsForUser"/>
  44.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  45.            send_member="GetSystemIdleHint"/>
  46.     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
  47.            send_member="GetSystemIdleSinceHint"/>
  48.  
  49.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
  50.            send_member="GetId"/>
  51.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
  52.            send_member="GetSessions"/>
  53.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
  54.            send_member="GetDevices"/>
  55.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
  56.            send_member="GetActiveSession"/>
  57.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
  58.            send_member="CanActivateSessions"/>
  59.     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
  60.            send_member="ActivateSession"/>
  61.  
  62.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  63.            send_member="GetId"/>
  64.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  65.            send_member="GetSeatId"/>
  66.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  67.            send_member="GetSessionType"/>
  68.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  69.            send_member="GetUser"/>
  70.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  71.            send_member="GetUnixUser"/>
  72.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  73.            send_member="GetX11Display"/>
  74.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  75.            send_member="GetX11DisplayDevice"/>
  76.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  77.            send_member="GetDisplayDevice"/>
  78.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  79.            send_member="GetRemoteHostName"/>
  80.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  81.            send_member="IsActive"/>
  82.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  83.            send_member="IsLocal"/>
  84.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  85.            send_member="GetCreationTime"/>
  86.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  87.            send_member="Activate"/>
  88.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  89.            send_member="GetIdleHint"/>
  90.     <allow send_interface="org.freedesktop.ConsoleKit.Session"
  91.            send_member="GetIdleSinceHint"/>
  92.   </policy>
  93.  
  94. </busconfig>
  95.